package com.ruoyi.bysj.mapper;

import com.ruoyi.bysj.domain.SysOrderGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 货物配送Mapper接口
 * 
 * @author laow
 * @date 2021-10-19
 */
public interface SysOrderGoodsMapper
{

    public int deleteOrderGoodsByOrderId(Long orderId);

    public int deleteOrderGoods(Long[] ids);

    public List<Long> selectOrderGoodsByOrderId(Long orderId);

    public int countOrderGoodsByGoodsId(Long goodsId);

    /**
     * 批量新增用户角色信息
     *
     * @param orderGoodsList 用户角色列表
     * @return 结果
     */
    public int batchOrderGoods(List<SysOrderGoods> orderGoodsList);

    /**
     * 删除用户和角色关联信息
     *
     * @param orderGoods 用户和角色关联信息
     * @return 结果
     */
    public int deleteOrderGoodsInfo(SysOrderGoods orderGoods);

    /**
     * 批量取消授权用户角色
     *
     * @param goodsId 角色ID
     * @param orderIds 需要删除的用户数据ID
     * @return 结果
     */
    public int deleteOrderGoodsInfos(@Param("goodsId") Long goodsId, @Param("orderIds") Long[] orderIds);
}
